package com.lywz.biz.common.entity.example;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;
/**
 * 工作实体类
 * @author yangbl
 * date 2010-4-25
 */
@Entity
@Table(name = "test_job")
@EntityAnnotation
public class Job extends AbstractEntity {
	private static final long serialVersionUID = -5219706878980556187L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer jobid;
	private String job;
	@ManyToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "userid")
	private TUser user;

	public Integer getJobid() {
		return jobid;
	}

	public void setJobid(Integer jobid) {
		this.jobid = jobid;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public TUser getUser() {
		return user;
	}

	public void setUser(TUser user) {
		this.user = user;
	}

}
